function myAlert(state,message) {
	if(state === "success") {
		$(".alert-title").css("borderColor","#4CAE4C");
		$(".alert-title").css("backgroundColor","#5CB85C");
	} else if(state === "error") {
		$(".alert-title").css("borderColor","#D9534F");
		$(".alert-title").css("backgroundColor","#D43F3A");
	} else if(state === "warning") {
		$(".alert-title").css("borderColor","#F0AD4E");
		$(".alert-title").css("backgroundColor","#EEA236");
	}
	$(".alert-title").text(message);
	$(".alert-title").slideDown();
	setTimeout(function(){
		$(".alert-title").slideUp();
	}, 2000);
}